﻿using GrpcServer.Web.protos;

namespace GrpcServer.Web.Date
{
    public class InMemoryData
    {
        public static List<Employee> Employees()
        {
            var employees = new List<Employee>();
            for (int i = 1; i <= 10; i++)
            {
                employees.Add(new Employee()
                {
                    Id = i,
                    No = 1900 + i,
                    FirstName = $"FirstName_{i}",
                    LastName = $"LastName{i}",
                    MonthSalary = new MonthSalary
                    {
                        Basic = int.Parse($"{i}{i}{i}"),
                        Bonus = int.Parse($"{i}{i}{i}{i}{i}")
                    },
                    Status = EmployeeStatus.Retired
                });
            }
            return employees;
        }
    }
}
